Skip to content

ci: otimization detect changes#232

Open
matheusandre1 wants to merge 2 commits intomcruzdev:mainfrom
matheusandre1:ci-optimization
Open

ci: otimization detect changes#232
matheusandre1 wants to merge 2 commits intomcruzdev:mainfrom
matheusandre1:ci-optimization

Conversation

@matheusandre1
Copy link
Contributor

A small suggestion from me:

Optimizes CI/CD workflows to execute only relevant jobs based on path changes.

Avoid unnecessary job execution when only the frontend or backend is modified, reducing CI/CD time and resource consumption.

Changes

Created .github/workflows/detect_changes.yml - reusable workflow that detects path changes
Refactored build.yml - now uses detect_changes and executes conditional jobs
Refactored pull_request.yml - now uses detect_changes and executes conditional jobs

Build & Publish Workflow

  • Job timeless-api executes only if timeless-api/** has been modified
  • Job whatsapp executes only if whatsapp/** has been modified

Benefits
Faster CI/CD - unnecessary jobs don't run
Reduces resource consumption and CI/CD cost
Faster feedback for developers
Eliminates code duplication between workflows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant